package com.sskj.award.presenter;

import com.lzy.okgo.model.Response;
import com.sskj.award.bean.AirdropBillBean;
import com.sskj.award.bean.DividendRecordBean;
import com.sskj.award.bean.KongTouBean;
import com.sskj.award.ui.activity.AirDropBillActivity;
import com.sskj.common.base.HttpData;
import com.sskj.lib.http.JsonCallBack;

import java.util.List;


/**
 * @author Hey
 * Create at  2019/07/18
 */
public class AirDropBillPresenter extends BasePresenter<AirDropBillActivity> {

    public void getBillData(String type, String page) {
        httpService.getBillData(type,page)
                .tag(this)
                .execute(new JsonCallBack<HttpData<KongTouBean>>(this) {
                    @Override
                    public void onSuccess(Response<HttpData<KongTouBean>> response) {
                        mView.getBillDataSuccess(response.body().getData());
                    }

                    @Override
                    public void onFinish() {
                        super.onFinish();
                        mView.onStopFresh();
                    }
                });
    }
}
